package com.spring.springmvc.请求.传参;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/list")
@RestController
public class 传递集合 {
    @RequestMapping("/r1")
    //传递集合
    public String receive(@RequestParam List<String> list){
        return "list："+list;
    }
}
